<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	${username},登录成功 <br>
	<c:choose>
		<c:when test="${empty list }">
			没有数据
		</c:when>
		<c:otherwise>
			<c:forEach items="${list }" var="u">
				${u.username }<br>
			</c:forEach>
			<P>
				<a href="MainServlet?pageIndex=1">首页</a>
				<a href="MainServlet?pageIndex=${pageIndex-1}">上一页</a>
				<a href="MainServlet?pageIndex=${pageIndex+1}">下一页</a>
				<a href="MainServlet?pageIndex=${totalPage}">末页</a>
			</P>
		</c:otherwise>
	</c:choose>


</body>
</html>